﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.StorageClient;

namespace AzureBlob
{
    /// <summary>
    /// Interaction logic for ContainerDialog.xaml
    /// </summary>
    public partial class ContainerDialog : Window
    {
        public ContainerDialog()
        {
            InitializeComponent();
        }

        public string InputText
        {
            get
            {
                return textBox1.Text.Trim();
            }
        }

        internal BlobContainerPublicAccessType GetAccessType()
        {
            if (publicRadioBtn.IsChecked == true)
                return BlobContainerPublicAccessType.Container;
            else if (BlobEadioBtn.IsChecked == true)
                return BlobContainerPublicAccessType.Blob;
            else
                return BlobContainerPublicAccessType.Off;
        }

        private void OkButton_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = true;
            Close();
        }
    }
}
